package com.boilermaker.lotterysystem.service;

import com.boilermaker.lotterysystem.controller.param.PageParam;
import com.boilermaker.lotterysystem.controller.param.PrizeParam;
import com.boilermaker.lotterysystem.service.dto.PageListDTO;
import com.boilermaker.lotterysystem.service.dto.PrizeDTO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * 奖品服务模块
 */
public interface PrizeService {

    /**
     * 创建奖品
     *
     * @param param   奖品属性
     * @param picture 奖品图
     * @return 奖品 ID
     */
    Long createPrize(PrizeParam param, MultipartFile picture);

    /**
     * 获取奖品列表，支持翻页功能
     *
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPrizeList(PageParam param);
}
